<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

</head>
<body>
    <div class="layui-container">
        <form class="layui-form layui-clear" action="{:url('inspection/item/edit',array('itemId'=>$info.id))}" method="post">
            <div class="layui-form-item">
            	  <div class="layui-inline col-3">
	            	  <label class="layui-form-label">单位&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
	            	  <div class="layui-input-inline">
	            	   	<select name="enterpriseId">
	            	  		<option></option>
	            	  		{volist name="enterpriseList" id="item"}
	            	  		<option value="{$key}" {if $key == $info.enterpriseId}selected{/if}>{$item}</option>
	            	  		{/volist}
	            	  	</select>
	            	  </div>
            	  </div>
            	  <div class="layui-inline col-3">
	            	  	<label class="layui-form-label">巡检点&nbsp;<i class="layui-icon">&#xe642;</i></label>
		            	<div class="layui-input-inline">
		            		 <input class="layui-input" name="patrolPoint" data-set="patrolPoint" type="text" lay-verify="required" value="{$info.patrolPoint}" />
		            		 <input type="hidden" name="id" value="{$info.id}"/>
		            	</div>
            	  </div>
            	  <div class="layui-inline col-3">
		            	<label class="layui-form-label">巡检对象&nbsp;<i class="layui-icon">&#xe642;</i></label>
		            	<div class="layui-input-inline">
		            		 <input class="layui-input" name="inspectionObject" data-set="inspectionObject" type="text" lay-verify="required" value="{$info.inspectionObject}" />
		            	</div>
            	  </div>
            </div>
            <div class="layui-form-item">
            	<div class="layui-inline col-3">
	            	<label class="layui-form-label">巡检项目&nbsp;<i class="layui-icon">&#xe642;</i></label>
	            	<div class="layui-input-inline">
	            		 <input class="layui-input" name="inspectItem" data-set="inspectItem" type="text" lay-verify="required" value="{$info.inspectItem}" />
	            	</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">巡检周期</label>
	            	<div class="layui-input-inline">
	            		 <select name="cycleId">
	            		 	 <option></option>
	            		 	 {volist name="importanceList" id="item"}
	            		 	 <option value="{$item.subsystemNo}" {if $item.subsystemName == $info.importance}selected{/if}>{$item.subsystemName}</option>
	            		 	 {/volist}
	            		 </select> 
	            	</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">重要性</label>
	            	<div class="layui-input-inline">
	            		 <select name="importance">
	            		 	 <option></option>
	            		 	 {volist name="cycleList" id="item"}
	            		 	  <option value="{$item.subsystemNo}"{if $item.subsystemName == $info.cycleId}selected{/if}>{$item.subsystemName}</option>
	            		 	 {/volist}
	            		 </select> 
	            	</div>
            	</div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">巡检内容</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="inspectContent" data-set="inspectContent">{$info.inspectContent}</textarea>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">检查标准</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="inspectStandard" data-set="iinspectStandard">{$info.inspectStandard}</textarea>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">检查方法</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="inspectMethod" data-set="inspectMethod">{$info.inspectMethod}</textarea>
                </div>
            </div>
            <div class="layui-form-item">
            	<label class="layui-form-label">参考资料</label>
            	<div class="layui-input-block">
            		 <input class="layui-input" name="referenceMaterial" data-set="referenceMaterial" type="text" value="{$info.referenceMaterial}" />
            	</div>
            </div>
            <div class="layui-form-item">
            	<label class="layui-form-label">资料选择</label>
            	<div class="layui-input-block">
            		 <select name="referenceId">
            		 	 <option></option>
            		 	 {volist name="referenceList" id="item"}
            		 	 <option value="{$item.id}" {if $item.id == $info.referenceId}selected{/if}>{$item.title}</option>
            		 	 {/volist}
            		 </select> 
            	</div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="remark" data-set="remark" placeholder="请输入备注">{$info.remark}</textarea>
                </div>
            </div>
        	 <div class="layui-form-item">
                <div class="layui-input-block">
                     <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                     <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
                </div>
            </div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/inspection/item.js"></script>
       

</body>
</html>           
